﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BUS.DAL;

namespace BUS
{
    public class AdminBUS
    {
        public string UserName { get; set; }
        public string Pass { get; set; }
        public int Role { get; set; }

        public bool DangNhap()
        {
            AdminBUS newadmin = AdminDAL.DangNhap(this);
            if (newadmin != null)
            {
                return true;
                this.Role = newadmin.Role;
            }
            else
                return false;
        }
    }
}
